package com.tyf.common.vo;

import java.io.Serializable;
/**
 * 
 * Description: 与前端交互的结果VO
 * author:      liutao
 * Createdate:  2016年2月16日下午2:31:00
 * 
 */
public class ResultVO implements Serializable {
	private static final long serialVersionUID = 1L;
	public static final String SUCCESS_CODE = "0";	//信息码-成功
	public static final String WARN_CODE = "1001";	//信息码-提示
	public static final String ERROR_CODE = "9009";	//信息码-失败

	/**
     * 返回信息码 
     * 0-操作成功 1001-警告信息,对应前端app.msg.warning, 9009-失败,对应前端app.msg.danger
     */
    private String retCode = SUCCESS_CODE;
    /**
     * 返回自定义提示信息
     */
    private String retMsg = "success";
    /**
     * 返回详细信息
     */
    private Object retDetail;

	public String getRetCode() {
		return retCode;
	}

	public void setRetCode(String retCode) {
		this.retCode = retCode;
	}

	public String getRetMsg() {
		return retMsg;
	}

	public void setRetMsg(String retMsg) {
		this.retMsg = retMsg;
	}

	public Object getRetDetail() {
		return retDetail;
	}

	public void setRetDetail(Object retDetail) {
		this.retDetail = retDetail;
	}

    
}
